<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>添加商品信息</title>
<script src="../js/jquery-1.8.3.min.js"></script>
<script type="text/javascript">

   function ret(){
	   location.href="index.jsp";
   }
</script>
<s:if test="#request.norms==null">
  <jsp:forward page="add_blank.jsp"></jsp:forward>
</s:if>
<link href="../css/table.css" rel="stylesheet" type="text/css">
</head>
<body>
<form action="addProduct" method="post" id="form1">
  <table width="500" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td class="table_rightf">产品名称:</td>
    <td class="tableleftf"><input type="text" name="product.pdProductname"></td>
  </tr>
  <tr>
    <td class="table_rightf">价格:</td>
    <td align="left" valign="middle" class="tableleftf"><input type="text" name="product.pdPrice"></td>
  </tr>
  <tr>
    <td class="table_rightf">库存:</td>
    <td align="left" valign="middle" class="tableleftf"><input name="product.pdAllcount" type="text" value="0"></td>
  </tr>
  
  <tr>
    <td class="table_rightf">规格:</td>
    <td align="left" valign="middle" class="tableleftf">  <s:select name="norm" list="norms" listKey="typeId" listValue="typeValue"  theme="simple" ></s:select></td>
  </tr>

  <tr>
    <td class="table_rightf">单位:</td>
    <td align="left" valign="middle" class="tableleftf">  <s:select name="unit" list="units" listKey="typeId" listValue="typeValue" label="单位" theme="simple" ></s:select> </td>
  </tr>
	

  <tr>
    <td class="table_rightf">其它:</td>
    <td class="tableleftf">
      <textarea name="product.pdOther" id="textarea" cols="45" rows="5"></textarea>
    </td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td><input type="submit" value="  保存  ">
      <input type="button" value="  返回  " onClick="ret()"></td>
  </tr>
</table>
</form>
</body>
</html>